<template lang="">
    <div>
        <van-nav-bar title="健康信息" />
        <van-cell-group>
            <van-field v-model="value" label="身高" >
                <template #button>cm</template>
            </van-field>
            <van-field v-model="value" label="体重" >
                <template #button>kg</template>
            </van-field>
            <van-field v-model="value" label="血型" is-link/>
            <van-field v-model="value" label="RH阴性" is-link/>

            <van-cell title="药物过敏史">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="既往病史">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell>
                <template #value>
                    <van-checkbox-group v-model="checked" ref="checkboxGroup">
                        <van-checkbox name="a">高血压</van-checkbox>
                        <van-checkbox name="b">糖尿病</van-checkbox>
                        <van-checkbox name="c">冠心病</van-checkbox>
                        <van-checkbox name="c">其它疾病1</van-checkbox>
                        <van-checkbox name="c">其它疾病2</van-checkbox>
                        </van-checkbox-group>
                </template>
            </van-cell>

            <van-cell title="遗传病史">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="家族病史">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell >
                <template #value>
                    <van-checkbox-group v-model="checked" ref="checkboxGroup">
                        <van-checkbox name="a">父亲</van-checkbox>
                        <van-checkbox name="b">母亲</van-checkbox>
                        <van-checkbox name="c">兄弟姐妹</van-checkbox>
                        <van-checkbox name="c">子女</van-checkbox>
                        <van-checkbox name="c">其他</van-checkbox>
                        </van-checkbox-group>
                </template>
            </van-cell>

            <van-cell title="手术史">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="输血史">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="残疾情况">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="体育锻炼">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">无</van-radio>
                        <van-radio name="2">有</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="饮食习惯">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">荤素均衡</van-radio>
                        <van-radio name="2">荤食为主</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="嗜">
                <template #value>
                    <van-checkbox-group v-model="checked" direction="horizontal">
                        <van-checkbox name="a">无</van-checkbox>
                        <van-checkbox name="b">油</van-checkbox>
                        <van-checkbox name="c">盐</van-checkbox>
                        <van-checkbox name="c">糖</van-checkbox>
                    </van-checkbox-group>
                </template>
            </van-cell>

            <van-field v-model="value" label="蔬菜" >
                <template #button>两/天</template>
            </van-field>
            <van-field v-model="value" label="水果" >
                <template #button>两/天</template>
            </van-field>


            <van-cell title="口味">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">咸</van-radio>
                        <van-radio name="2">适中</van-radio>
                        <van-radio name="3">淡</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>
            
            <van-cell title="是否限制摄入脂肪含量较高的食物">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">是</van-radio>
                        <van-radio name="2">否</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-cell title="吸烟情况">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">从不</van-radio>
                        <van-radio name="2">吸烟</van-radio>
                        <van-radio name="3">已戒烟</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-field v-model="value" label="开始吸烟" >
                <template #button>岁</template>
            </van-field>
            <van-field v-model="value" label="戒烟年龄" >
                <template #button>岁</template>
            </van-field>
            <van-field v-model="value" label="日吸烟量" >
                <template #button>支</template>
            </van-field>

            <van-cell title="吸烟情况">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">从不</van-radio>
                        <van-radio name="2">经常</van-radio>
                        <van-radio name="3">已戒烟</van-radio>
                        <van-radio name="4">每天</van-radio>
                        <van-radio name="5">已戒酒</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>

            <van-field v-model="value" label="开始饮酒" >
                <template #button>岁</template>
            </van-field>
            <van-field v-model="value" label="戒酒年龄" >
                <template #button>岁</template>
            </van-field>
            <van-field v-model="value" label="日饮酒量" >
                <template #button>两</template>
            </van-field>
            
            <van-cell title="一年内是否醉酒">
                <template #value>
                    <van-radio-group v-model="checked"  direction="horizontal">
                        <van-radio name="1">是</van-radio>
                        <van-radio name="2">否</van-radio>
                    </van-radio-group>
                </template>
            </van-cell>


        </van-cell-group>
    </div>
</template>
<script>
import { ref, reactive } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { getItem, getItemCate, addItemCate } from "../api/index"
import { getUserInfo, log, LOCAL_USER } from "../utils/user"
import { showToast, showConfirmDialog } from 'vant';
export default {
    setup() {
        const router = useRouter()
        const route = useRoute()
        const userInfo = getUserInfo();

        const tab = ref('zl')
        return {
            tab
        }
    }
}
</script>
<style scoped>

</style>